#ifndef RUNSHOPGOODSMANAGER_H
#define RUNSHOPGOODSMANAGER_H
#include "QString"
#include "bean/runshopgoods.h"
#include "QStringList"
#include "QList"
#include <QGlobalStatic>
#include "bean/citynode.h"

class RunShopGoodsManager
{

private:
    QStringList goodsNames;
    QList<RunShopGoods*> *runShopGoods = new QList<RunShopGoods*>();

    QStringList times; //商品买卖时辰
    QStringList xiaoWeiLocations; //校尉位置 如 正东校尉、正西校尉
    QStringList xiaoWeiLocationsImgs;
private:
      QList<int> calculateTime(int timeCode);

public:
    RunShopGoodsManager();
    ~RunShopGoodsManager();
    static RunShopGoodsManager *getInstance();
    RunShopGoods* getGoods(QString name);
    QStringList getGoodsNames();
    int index(QString name);
//    void setGoodsTime(QString goodsName, int time);
    QStringList getTimes();
    QStringList getBestTime(int timeCode);
    QStringList getXiaoWeiLocations();
    QString getXiaoWeiLocationsImgs(QString xiaoWeiLocation);
};

#endif // RUNSHOPGOODSMANAGER_H
